<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
.star-rating,
.star-rating a:hover,
.star-rating a:active,
.star-rating a:focus,
.star-rating .current-rating{
	background:url(star.gif) left -1000px repeat-x;
}
.star-rating{
	position:relative;
	width:125px;
	height:25px;
	overflow:hidden;
	list-style:none;
	margin:0;
	padding:0;
	background-position: left top;
}
.star-rating li{
	display: inline;
}
.star-rating a, 
.star-rating .current-rating{
	position:absolute;
	top:0;
	left:0;
	text-indent:-1000em;
	height:25px;
	line-height:25px;
	outline:none;
	overflow:hidden;
	border: none;
}
.star-rating a:hover,
.star-rating a:active,
.star-rating a:focus{
	background-position: left bottom;
}
.star-rating a.one-star{
	width:20%;
	z-index:6;
}
.star-rating a.two-stars{
	width:40%;
	z-index:5;
}
.star-rating a.three-stars{
	width:60%;
	z-index:4;
}
.star-rating a.four-stars{
	width:80%;
	z-index:3;
}
.star-rating a.five-stars{
	width:100%;
	z-index:2;
}
.star-rating .current-rating{
	z-index:1;
	background-position: left center;
}	

/* for an inline rater */
.inline-rating{
	display:-moz-inline-block;
	display:-moz-inline-box;
	display:inline-block;
	vertical-align: middle;
}

/* smaller star */
.small-star{
	width:50px;
	height:10px;
}
.small-star,
.small-star a:hover,
.small-star a:active,
.small-star a:focus,
.small-star .current-rating{
	background-image:url(star_small.gif);
	line-height: 10px;
	height: 10px;
}




</style>
</head>

<body>
<ul class="star-rating">
	<li class="current-rating" style="width:60%;">Currently 3/5 Stars.</li>
	<li><a href="#" title="1 star out of 5" class="one-star">1</a></li>
	<li><a href="#" title="2 stars out of 5" class="two-stars">2</a></li>
	<li><a href="#" title="3 stars out of 5" class="three-stars">3</a></li>
	<li><a href="#" title="4 stars out of 5" class="four-stars">4</a></li>
	<li><a href="#" title="5 stars out of 5" class="five-stars">5</a></li>
</ul>

<span class="inline-rating">
<ul class="star-rating small-star">
	<li class="current-rating" style="width:30%;">Currently 1.5/5 Stars.</li>
	<li><a href="#" title="1 star out of 5" class="one-star">1</a></li>
	<li><a href="#" title="2 stars out of 5" class="two-stars">2</a></li>
	<li><a href="#" title="3 stars out of 5" class="three-stars">3</a></li>
	<li><a href="#" title="4 stars out of 5" class="four-stars">4</a></li>
	<li><a href="#" title="5 stars out of 5" class="five-stars">5</a></li>
</ul></span>

<ul class="star-rating small-star">
	<li class="current-rating" style="width:50%">Currently 2.5/5 Stars.</li>
	<li><a href="#" title="1 star out of 5" class="one-star">1</a></li>
	<li><a href="#" title="2 stars out of 5" class="two-stars">2</a></li>
	<li><a href="#" title="3 stars out of 5" class="three-stars">3</a></li>
	<li><a href="#" title="4 stars out of 5" class="four-stars">4</a></li>
	<li><a href="#" title="5 stars out of 5" class="five-stars">5</a></li>
</ul>

</body>
</html>
